using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NodeBasedSkillEditor.Model.Node
{
    [Node(Category = DAGHelper.CateName_Convert, Name = "Enum to Integer")]
    [NodeTypeGroup(TypeGroupId = 1, AllowedTypes = new Type[] { typeof(Enum) })]
    public class Node_EnumToInteger : NodeData
    {
        [Port(IOType = EPortIOType.Input, TypeGroup = 1)]
        public ValuePort EnumIn = new ValuePort();

        [Port(IOType = EPortIOType.Output)]
        public IntegerPort IntegerOut = new IntegerPort();

        public override RT_Node BuildRuntimeNode(RT_DAG parentDAG)
        {
            return new RT.Node_EnumToInteger_RT(this, parentDAG);
        }
    }
}
